package cc.mrbird.febs.system.service;

import cc.mrbird.febs.common.domain.QueryRequest;
import cc.mrbird.febs.system.domain.TResident;
import cc.mrbird.febs.system.vo.TResidentVO;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * @author dtwei
 */
public interface ITResidentService extends IService<TResident> {

    IPage<TResidentVO> findResidentPage(TResident rs, String areaName, QueryRequest queryRequest);

    void createRs(TResident rs) throws Exception;

    void deleteRs(String[] ids) throws Exception;

    void updateRs(TResident rs) throws Exception;

    int countResidents(List<TResident> rsIds);

    List<TResident> findResidents(TResident rs);

    List<Map<String, Object>> importRs(List<Map<String, Object>> successList) throws Exception;
}
